package thread.synchronize_base;

/**
 * Created by mHandler on 2018/5/28 0028.
 * Description:
 */
public class ThreadB extends Thread {

    private HasSelfPrivateNum hasSelfPrivateNum;
    public ThreadB(HasSelfPrivateNum hasSelfPrivateNum){
        super();
        this.hasSelfPrivateNum = hasSelfPrivateNum;
    }

    @Override
    public void run() {
        super.run();
        hasSelfPrivateNum.addI("b");
    }
}
